﻿@model CML.Intercamber.Business.Users
@{
    ViewBag.PageTitle = Resources.Intercamber.AccountCreate;
}
@section PageHead
{
    <script type="text/javascript">

        function validateForm() {
            var errorMsg = basicInfoEditor.validatePassword(true);
            $("#errorMessage").html(errorMsg);
            return errorMsg == null;
        }

        $(function () {
            $(".jqbutton").button();
            basicInfoEditor.init();
        });
    </script>
    <style>
        .loginDiv
        {
            margin-top:120px;
            display:inline-block;
            text-align: center;
            padding: 30px;
            width: 600px;
            border: 1px solid gray;
            background-color: white;
        }
    </style>
}

@section PageContent {
    <div class="innerTitle ui-corner-all">
        @Resources.Intercamber.AccountCreate
    </div>
    <br />
    <br />
    <div align="center" style="width:100%;">
        <div class="ui-corner-all loginDiv">
            @Resources.Intercamber.AcountCreate_WelcomeMessage
            <br />
            <br/>
            <label id="errorMessage" style="color:red">@ViewBag.ErrorMessage</label>
            @using (Html.BeginForm())
            {
                @Html.Partial("~/Views/Profile/_BasicInformationEditorPartial.cshtml", Model)
                <br/>
                <div style="width:100%; text-align: left; ">
                    <button id="btnSave" class="jqbutton" onclick="return validateForm()">
                        <img style="vertical-align: top; margin-top: 3px;" src="/Images/Check.png" />
                        @Resources.Intercamber.SaveChanges
                    </button>
                    &nbsp;&nbsp;&nbsp;
                    <button id="btnCancel" class="jqbutton" onclick="document.location='/Account/Login';return false;">@Resources.Intercamber.Cancel</button>
                </div>
            }
        </div>
     </div>
}
